const path = require('path');
const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
//使用报错中
module.exports = {
	mode: 'production',
    entry: path.resolve(__dirname, './src/index.js'),
    plugins: [
        new HardSourceWebpackPlugin()
    ]
};